import { Component } from "@angular/core";
import { MenuItemModel, AuthService } from "./core/auth/auth.service";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.scss"]
})
export class AppComponent {
  isCollapsed = false;
  subMenuVisible: boolean;
  subMenuData: any;

  constructor(private authService: AuthService) {}

  activeTopMenu(item: MenuItemModel): void {
    this.subMenuData = { ...item };
    this.subMenuVisible = !!item.subnodeCnt;
  }
}
